package com.example.worldcupsever;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
    Button mBtn1,mBtn2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mBtn1=findViewById(R.id.btn1);
        mBtn1.setOnClickListener(this);
        mBtn2=findViewById(R.id.btn2);
        mBtn2.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn1:
                startActivity(new Intent(MainActivity.this,LoginActivity.class));
                break;
            case R.id.btn2:
                startActivity(new Intent(MainActivity.this,RegistActivity.class));
                break;

        }
    }

        /*Intent intent=new Intent(MainActivity.this, LoginActivity.class);
        startActivity(intent);*/


}
